<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/3/7 0007
 * Time: 19:15
 */

namespace App\Models\ActivityTrigger;

use App\Models\Groupable;
use App\Support\Database\Eloquent\UuidModel;

class ActivityTrigger extends UuidModel
{
    use Groupable;

    const ACTIVITY_TRIGGER_PLATFORM_JS = 1; //js平台
    const ACTIVITY_TRIGGER_PLATFORM_IOS = 2;//ios平台
    const ACTIVITY_TRIGGER_PLATFORM_ANDROID = 4;//android平台

    const ACTIVITY_TRIGGER_SMALL_IMG = 1;//小图
    const ACTIVITY_TRIGGER_BIG_IMG = 2;//大图
    const ACTIVITY_TRIGGER_NO_IMG = 3;//无图

    const ACTIVITY_TRIGGER_ACT_TYPE_LIST = 1;//活动列表
    const ACTIVITY_TRIGGER_ACT_TYPE_SELF = 2;//自有活动

    const ACTIVITY_TRIGGER_FLOAT_LONG = 1;//一直显示
    const ACTIVITY_TRIGGER_FLOAT_TIMING = 2;//定时消失

    const ACTIVITY_TRIGGER_LOGIN = 1;//登录
    const ACTIVITY_TRIGGER_REGISTER = 2;//注册
    const ACTIVITY_TRIGGER_PAY = 3;//支付
    const ACTIVITY_TRIGGER_START = 4;//启动

    const ACTIVITY_TRIGGER_STATUS_PAUSE = 2;//暂停
    const ACTIVITY_TRIGGER_STATUS_START = 1;//进行中

    protected $fillable = [
        'user_id',
        'float_time',
        'float_type',
        'rule_name',
        'act_id',
        'act_name',
        'act_type',
        'platform',
        'show_img',
        'begin_time',
        'end_time',
        'trigger_times',
        'trigger_times_unit',
        'trigger_condition',
        'target',
        'status',
        'weight',
        'totop',
        'toleft',
        'small_img',
        'big_img',
        'checked_big_img',
        'checked_small_img',
        'group_code',
    ];
}
